import Cookies from 'js-cookie'
import request from './request'

const TokenKey = 'Admin-Token'
//获取cookie中的token
export function getToken() {
  return Cookies.get(TokenKey)
}
//把token存入cookie
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
//把token从cookie中移除
export function removeToken() {
  return Cookies.remove(TokenKey)
}
